package crawler.cnki.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

@Document(collection = "Paper")
public class Paper {

    @Id
    String _id;

    @Field("title")
    String title;
    @Field("author")
    String author;
    @Field("summary")
    String summery;
    @Field("url")
    String url;
    @Field("keywords")
    String keywords;
    @Field("date")
    String date;
    @Field("journal")
    String journal;
    @Field("organization")
    String organization;
    @Field("DOI")
    String DOI;
    @Field("likes")
    int likes;
    @Field("read")
    int read;
    @Field("change")
    boolean change;

    public Paper(){}

    public Paper(String title, String author, String summery, String url, String keywords, String date, String journal, String organization, String DOI) {
        this.title = title;
        this.author = author;
        this.summery = summery;
        this.url = url;
        this.keywords = keywords;
        this.date = date;
        this.journal = journal;
        this.organization = organization;
        this.DOI = DOI;
    }

    public String getSummery() {
        return summery;
    }

    public void setSummery(String summery) {
        this.summery = summery;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getJournal() {
        return journal;
    }

    public void setJournal(String journal) {
        this.journal = journal;
    }

    public String getOrganization() {
        return organization;
    }

    public void setOrganization(String organization) {
        this.organization = organization;
    }

    public String getDOI() {
        return DOI;
    }

    public void setDOI(String DOI) {
        this.DOI = DOI;
    }

    public int getLikes() {
        return likes;
    }

    public void setLikes(int likes) {
        this.likes = likes;
    }

    public int getRead() {
        return read;
    }

    public void setRead(int read) {
        this.read = read;
    }

    public boolean isChange() {
        return change;
    }

    public void setChange(boolean change) {
        this.change = change;
    }


    public String get_id() {
        return _id;
    }

    public void set_id(String _id) {
        this._id = _id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }
}
